import { createApp } from 'vue';
import App from './App.vue';
import { useGlobalComponent } from './components/index';
import { get, post, baseURL } from './plugins/axios';
import router from './plugins/router';
import './style/reset.css';

const app = createApp(App);

app.use(router);

// 全局变量
app.provide('global', {
  get,
  post,
  baseURL,
  router
});

// 全局组件
useGlobalComponent(app);

app.mount('#app');
